//
//  TableViewCell.m
//  AoJi
//
//  Created by MinwenYi on 15-1-20.
//  Copyright (c) 2015年 xuanheng. All rights reserved.
//

#import "HomeTableViewCell.h"

@implementation HomeTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{

 self=   [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUpCell];
    }
    
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setUpCell
{
    self.headImgView=[[UIImageView  alloc]initWithFrame:CGRectMake(10, 5, 40, 40)];
    self.headImgView.layer.cornerRadius=CGRectGetHeight(_headImgView.bounds)/2;
    _headImgView.clipsToBounds=YES;
    [self.contentView addSubview:_headImgView];
    
    self.titleLable=[[UILabel alloc]initWithFrame:CGRectMake(70, 5, 150, 50)];
    [self.contentView addSubview:_titleLable];

}
@end
